from django.core.files.storage import Storage

class FastDFSStorage(Storage):
    """自定义文件存储系统"""
    def __init__(self, option=None):
        pass

    def _open(self, name, mode='rb'):
       pass

    def _save(self, name, content, max_length=None):
        pass

    def url(self, name):
        if 'http' in name:
            return name
        return 'http://192.168.182.5:8888/'+name
